<html>
<head>
    <link rel="stylesheet" href="../../layui/css/layui.css"/>
    <link rel="stylesheet" href="../../css/list.css"/>

</head>
<body>
<form class="layui-form user-add-form">
    <input type="hidden" id="hideId" value="${lyrics.id!}"/>
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label" STYLE="margin-left: 30px">歌曲名称</label>
            <div class="layui-input-block">
                <input type="text" class="layui-input add-userName" readonly="readonly" value="${lyrics.name!}">
            </div>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label" STYLE="margin-left: 30px">歌曲类型</label>
            <div class="layui-input-block">
                <input type="text" class="layui-input add-userName" readonly="readonly"
                       value="<#if lyrics.type==0>专辑【${lyrics.musicAlbum.name!}】<#else>单曲</#if>">
            </div>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label" STYLE="margin-left: 30px">添加用户</label>
            <div class="layui-input-block">
                <input type="text" class="layui-input add-userName" readonly="readonly"
                       value="<#if lyrics.musicUser.registerType == 0>${lyrics.musicUser.phone!}<#elseif lyrics.musicUser.registerType == 1>${lyrics.musicUser.email!}<#else>${lyrics.musicUser.nickName!}</#if>">
            </div>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label" STYLE="margin-left: 30px">歌手名称</label>
            <div class="layui-input-block">
                <input type="text" class="layui-input add-userName" readonly="readonly" value="${lyrics.musicSongster.name!}">
            </div>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label" STYLE="margin-left: 30px">歌曲封面</label>
            <div class="layui-input-block">
                <#if lyrics.type == 0>
                    <img src="${lyrics.musicAlbum.cover!}" width="200" height="200" />
                <#else>
                    <img src="${lyrics.cover!}" width="200" height="200" />
                </#if>
            </div>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label" STYLE="margin-left: 30px">歌曲歌词</label>
            <div class="layui-input-block">
                <input type="text" class="layui-input add-userName" readonly="readonly" value="${lyrics.synopsis!}">
            </div>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label" STYLE="margin-left: 30px">歌曲翻译</label>
            <div class="layui-input-block">
                <input type="text" class="layui-input add-userName" readonly="readonly" value="${lyrics.translate!}">
            </div>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label" STYLE="margin-left: 30px">审核状态</label>
            <div class="layui-input-block">
                <input type="text" class="layui-input add-userName" readonly="readonly"
                       value="<#if lyrics.status == 0>审核中<#elseif lyrics.status == 1>审核通过<#else>未通过</#if>">
            </div>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label" STYLE="margin-left: 30px">失败原因</label>
            <div class="layui-input-block">
                <input type="text" class="layui-input add-userName" readonly="readonly" value="${lyrics.reason!}">
            </div>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label" STYLE="margin-left: 30px">发布时间</label>
            <div class="layui-input-block">
                <input type="text" class="layui-input add-userName" readonly="readonly" value="${(lyrics.addtime?string("yyyy-MM-dd HH:mm:ss"))!}">
            </div>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label" STYLE="margin-left: 30px">发布ip</label>
            <div class="layui-input-block">
                <input type="text" class="layui-input add-userName" readonly="readonly" value="${lyrics.addip!}">
            </div>
        </div>
    </div>
    <#if lyrics.status == 0>
        <div class="layui-input-block">
            <input type="text" id="reason" class="layui-input add-userName" placeholder="请输入原因"/>
            <button type="button" id="agree" class="layui-btn layui-bg-green" lay-filter="addNews">通过</button>
            <button type="button" id="noagree" class="layui-btn layui-bg-gray" lay-filter="addNews">不通过</button>
        </div>
    </#if>
    <#if lyrics.status == 1>
        <div class="layui-input-block">
            <input type="text" id="reason" class="layui-input add-userName" placeholder="请输入原因"/>
            <button type="button" id="noagree" class="layui-btn layui-bg-gray" lay-filter="addNews">不通过</button>
            <button type="button" id="noaudit" class="layui-btn layui-bg-green" lay-filter="addNews">改为审核中</button>
        </div>
    </#if>
    <#if lyrics.status == 2>
        <div class="layui-input-block">
            <input type="text" id="reason" class="layui-input add-userName" placeholder="请输入原因"/>
            <button type="button" id="agree" class="layui-btn layui-bg-green" lay-filter="addNews">通过</button>
            <button type="button" id="noaudit" class="layui-btn layui-bg-gray" lay-filter="addNews">改为审核中</button>
        </div>
    </#if>
</form>
<script type="text/javascript" src="../../layui/layui.js"></script>
<script type="text/javascript" src="../../js/music/lyricslist.js"></script>


</body>
</html>
